using System;

namespace Arcane.Source.Combat
{
    public abstract class BaseItem : ITrigger
    {
        public int Count { get; protected set; } = 1;
        public bool Valid => true;

        public virtual void OnStack(ITrigger trigger)
        {
            if (trigger is BaseItem)
            {
                Count += 1;
            }
        }

        public abstract void OnReady(Entity host);
        public abstract void OnRemove(Entity host);
        public abstract void OnTick(Entity host);
    }
}